﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommandLogic.Interface;
using BlockLogic.Impl.Controller;

namespace CommandLogic.Impl
{
    class DeleteBlockCommand : ICommandLogic
    {
        private static DeleteBlockCommand instance = new DeleteBlockCommand();

        private DeleteBlockCommand() { }

        public DeleteBlockCommand getInstance()
        {
            return instance;
        }

        public Dictionary<string, object> execute(Dictionary<string, object> param)
        {
            var id = (Guid)param["id"];

            var blockController = BlockController.GetInstance();
            blockController.RemoveBlock(id);

            return null;
        }

    }

}
